package io.qifan.desktop.api.auth;

import io.qifan.desktop.api.auth.request.UserLoginRequest;
import io.qifan.desktop.common.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "auth", url = "http://desktop-server:8080", path = "auth")
public interface AuthFeignClient {
    @PostMapping("login")
    R<Token> login(@RequestBody UserLoginRequest loginRequest);
}
